{include file='public:header-css'/}
<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--左侧导航-->
        {include file='public:left-menu'/}
        <!--End 左侧导航-->
        <!--头部信息-->
        {include file='public:nav-header' title="系统管理" subTitle="系统设置"/}
        <!--End 头部信息-->

        <!--页面主要内容-->
        <main class="lyear-layout-content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="card">
                            <ul class="nav nav-tabs page-tabs">
                                {volist name="$group_list" id="group"}
                                <li class="{$key==$inc_type ?'active':''}"><a href="{:url('System/index',['inc_type'=>$key])}">{$group}</a></li>
                                {/volist}
                            </ul>
                            <div class="tab-content" style="padding: 0">
                                <div class="tab-pane active">
                                    <form action="#!" method="post" class="edit-form">
                                        <div class="card-header form-header"><h4>快递100设置</h4></div>
                                        <div class="form-info">
                                            <div class="form-group row">
                                                <div class="col-md-6">
                                                    <label for="ship_key">Key</label>
                                                    <input class="form-control" type="text" id="ship_key" name="ship_key"
                                                           value="{$config.ship_key}" placeholder="请输入快递[key]">
                                                    <small class="help">快递配置-Key</small>
                                                </div>
                                                <div class="col-md-6">
                                                    <label for="ship_customer">Customer</label>
                                                    <input class="form-control" type="text" id="ship_customer" name="ship_customer"
                                                           value="{$config.ship_customer}" placeholder="请输入快递[customer]">
                                                    <small class="help">快递配置-Customer</small>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <input type="hidden" name="inc_type" value="{$inc_type}">
                                                <button type="button" class="btn-theme submit-btn">确定</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
        <!--End 页面主要内容-->
    </div>
</div>
<style>
    .form-info{
        padding: 10px 24px;
    }
</style>
<script type="text/javascript">
    $(function () {
        $('.submit-btn').on('click',function () {
            var url = "{:url('System/handle')}";
            var data = $('.edit-form').serialize();
            public_ajax(url,data,function (res) {
                if (res.code == 1) {
                    showErrorMsg(res.msg);
                } else {
                    showErrorMsg(res.msg);
                }
            })
        })
    });
    function call_back(fileurl_tmp,fileurl_id)
    {
        $("[name="+fileurl_id+"]").val(fileurl_tmp);
        $("#"+fileurl_id).attr('src', fileurl_tmp);
    }
</script>
</body>
</html>
